package com.monco.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.monco.entity.Rubbish;
import com.monco.entity.RubbishRecord;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author com/monco
 * @since 2020-03-11
 */
public interface IRubbishRecordService extends IService<RubbishRecord> {

    /**
     * 查询列表数据
     *
     * @param rubbishRecord
     * @return
     */
    List<RubbishRecord> getRubbishRecordList(RubbishRecord rubbishRecord);

    /**
     * 查询分页数据
     *
     * @param page
     * @param rubbishRecord
     * @return
     */
    IPage<RubbishRecord> getRubbishRecordPage(IPage<RubbishRecord> page, RubbishRecord rubbishRecord);

    /**
     * 批量添加垃圾回收
     *
     * @param rubbishRecordList
     * @param userId
     */
    void saveRubbishRecord(List<RubbishRecord> rubbishRecordList, Long userId);
}
